package com.example.fragmentdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class DetailActivity extends AppCompatActivity {

    private static final String TAG = "hacket";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail);
        ButterKnife.bind(this);

        Student student = new Student();
        student.setAge(24);
        student.setName("zengfansheng");

        student.getName();
        Log.d(TAG, "onCreate: student:"+student);
    }

    @OnClick(R.id.bt_null)
    public void bt_null() {
        String s = null;
        s.toString();
    }

}